package cn.edu.scau.cmi.dengshixin.abstractFactory;

import cn.edu.scau.cmi.dengshixin.brand.Wens;
import cn.edu.scau.cmi.dengshixin.factoryProduct.Meat;
import cn.edu.scau.cmi.dengshixin.factoryProduct.WensBeaf;
import cn.edu.scau.cmi.dengshixin.factoryProduct.WensChicken;
import cn.edu.scau.cmi.dengshixin.factoryProduct.WensPork;

public class WensMeatFactory extends Factory implements Wens {

	public Meat produce(String meatName) {
		Meat meat = null;
		switch(meatName) {
		case "Beaf":
			meat = new WensBeaf();
			break;
		case "Chicken":
			meat = new WensChicken();
			break;
		case "Pork":
			meat = new WensPork();
			break;
		}
		return meat;
	}
	
}
